package stringtest;

/**
 * @Author: fxy
 * @Date: 2022/02/22/13:08
 * @Description:
 */
public class InternTest1 {
    public static void main(String[] args) {
        String s = new String("a")+new String("b");
        String s2 = s.intern();
        System.out.println(s2=="ab");
        System.out.println(s=="ab");
    }
}
